-instance = directive

-content_for :widget_title do
  #{directive.meta_kind.to_s.titleize} Info

-content_for :widget_help, 'directive_info'

-content_for :widget_id, 'directive_info_widget'

%ul.info-list
  %li.float-element
    %label
      Code
    %span
      %strong=instance.slug
  %li.float-element
    %label
      Title
    %span
      %strong=instance.title
  %li.float-element
    %label
      Kind
    %span.governance
      %i{ :class => "grcicon-#{instance.meta_kind}-color" }
      =instance.kind
  %li
    %label
      Description
    -if instance.description != ""
      =display_as_html instance.description
    -else
      .rtf
        %p.no-data no description available
  -if instance.url.present?
    %li.float-element
      %label
        Direct link
      %span
        =link_to(instance.url, absolute_url(instance.url), :target => "_blank", :class => "inner-element")

%section.footer
  .row-fluid
    .span6
      %p.footer-left
        Created: #{instance.created_at.strftime("%m/%d/%y")}
